package com.kaiedu.spring.component;

import com.kaiedu.spring.annotation.kaiComponent;

/**
 * @author kai
 * @version 1.0
 * @date 2024/6/18
 * @Description
 */
@kaiComponent(value = "smartDog")
public class SmartDog implements SmartAnimalable {
    @Override
    public float getSum(float i, float j) {
        float result = i + j;
        System.out.println("方法内部打印：result=" + result);
        return result;
    }

    @Override
    public float getSub(float i, float j) {
        float result = i - j;
        System.out.println("方法内部打印：result=" + result);
        return result;
    }
}